package com.yuchen.ishop.entity;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

import java.beans.Transient;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * 系统字典
 */
@Table("t_dictionaries")
public class Dictionary implements Serializable {
    @Id
    private Long id;
    @Column
    private String name;
    @Column("dic_key")
    private String dicKey;
    @Column("dic_val")
    private String dicVal;
    @Column
    private Long sort;

    private List<Map> goodses;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDicKey() {
        return dicKey;
    }

    public void setDicKey(String dicKey) {
        this.dicKey = dicKey;
    }

    public String getDicVal() {
        return dicVal;
    }

    public void setDicVal(String dicVal) {
        this.dicVal = dicVal;
    }

    public Long getSort() {
        return sort;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    @Transient
    public List<Map> getGoodses() {
        return goodses;
    }

    public void setGoodses(List<Map> goodses) {
        this.goodses = goodses;
    }
}
